
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;


/**
 * 商品品牌
 *
 * @author
 * @date 2024-09-02 10:45:39
 */
@Data
@TableName("goods_brand")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商品品牌")
public class GoodsBrand extends Model<GoodsBrand> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private Integer sort;
    /**
     * （1：开启；0：关闭）
     */
    @NotNull(message = "（1：开启；0：关闭）不能为空")
    @Schema(description = "（1：开启；0：关闭）")
    private String enable;
    /**
     * 品牌名称
     */
    @NotNull(message = "品牌名称不能为空")
    @Schema(description = "品牌名称")
    private String brandName;
    /**
     * 品牌图片
     */
    @Schema(description = "品牌图片")
    private String picUrl;

}
